#!/bin/bash

#Description:停止dubbo服务脚本
#sh restart.sh

export PATH=$JAVA_HOME/bin:$PATH

#-------------------------------------------------------------------
#    Mb Bootstrap Script
#-------------------------------------------------------------------
function main()
{
        pid=`ps -ef | grep "com.zhenai.crm.center.ProviderServer" |grep -v "grep"| awk '{print $2}'`
        echo "exists process pid $pid "
        if [ $pid ];
                then
                echo "kill the $pid process"
                kill -9 $pid
                echo "stop success"
        else
            echo "no process exists......"
        fi
}

main
